package com.shushan.home.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: TodayRecordBean
 * @Desciption: 今日练习记录bean
 * @author: yichaohua
 * @date: 2018-07-20
 */
public class TodayRecordBean extends NetBaseBean {

    public int right_count;
    public int exercises_count;
    public int score;
    public String create_time;
    public String year;
    public String time;


    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        right_count = jsonObject.optInt("right_count",0);
        exercises_count = jsonObject.optInt("exercises_count",0);
        score = jsonObject.optInt("score",0);
        create_time = jsonObject.optString("create_time","");
        year = jsonObject.optString("year","");
        time = jsonObject.optString("time","");
    }
}
